﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="PlugNT.App.Shop.Web.Pre_Admin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>商城后台首页</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<link href="../css/shop.css" rel="stylesheet" type="text/css" media="all" />
<link href="../css/class.css" rel="stylesheet" type="text/css" media="all" />
<script language="javascript">
    function PopitCounts() {
        //popit('在线人数', './OnlineUsers.aspx');
    }
    function PopitNotPayCount() {
        //popit('未付款订单', './order/admin.aspx?pstate=0&prompt=true');
        document.location.href = "./OrderList.aspx?pstate=0";
    }
    function PopitYetPayCount() {
        //popit('已付款需发货订单', './order/admin.aspx?pstate=1&ostate=0&prompt=true');

    }
    function PopitRefundPayCount() {
        //popit('处理申请退款订单', './order/admin.aspx?estate=1&prompt=true');

    }
    function PopitReturnedPayCount() {
        //popit('处理申请退货订单', './order/admin.aspx?estate=2&prompt=true');

    }   
</script> 
</head>
<body>

<div class="frmstatic" style="display:block;">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>插件&nbsp;&gt;&nbsp;商城管理&nbsp;&gt;&nbsp;商城信息</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="./Config.aspx">商城设置</a></label> | </td>
                        <td><label><a href="./OrderList.aspx">订单列表</a></label> | </td>
                        <td><label><a href="./OrderDownLoad.aspx">订单下载</a></label> | </td>
                        <td><label><a href="../Article/Admin.aspx">商品管理</a></label> | </td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>


<div class="frmstatic" style="display:block">
 <table width="100%" border="0" cellpadding="10" cellspacing="0">
   <tr valign="top">
    <td valign="top">


    <form id="form1" runat="server">
    <div class="content">
        <table id="checkList0" cellpadding="0" cellspacing="0" class="list">
            <tr>
                <td class="topTd" colspan="5" height="5">
                </td>
            </tr>
            <tr class="row">
                <th class="space" colspan="3">
                    订单提醒 
                </th>
            </tr>
            <tr class="row">
                <td width="15%">
                    未付款定单
                </td>
                <td>
                    您有 (<span style="color: #f30"><%=notPayCount %></span>) 个订单没有付过款 
                    <%
                        if (notPayCount > 0)
                        {
                        %>
                    ,<a href="javascript:PopitNotPayCount();">是否立即去处理？</a>
                    <%
                        }
                         %>
                </td>
            </tr>
            <tr class="row">
                <td width="15%">
                    需发货定单
                </td>
                <td>
                    您有 (<span style="color: #f30"><%=yetPayCount %></span>) 个订单需要发货了
                    <%
                        if (yetPayCount > 0)
                        {
                        %>
                     ,<a href="javascript:PopitYetPayCount()">
                        是否立即去处理？</a>
                    <%
                        }
                            %>
                </td>
            </tr>
            <tr class="row">
                <td width="15%">
                    退款申请单
                </td>
                <td>
                    共有 (<span style="color: #f30"><%=refundApplyforCount%></span>) 人提交了退款申请
                    <%
                        if (refundApplyforCount > 0)
                        {
                        %>
                     ,<a href="javascript:PopitRefundPayCount()">
                        是否立即去处理？</a>
                    <%
                        }
                            %>
                </td>
            </tr>
            <tr class="row">
                <td width="15%">
                    退货申请单
                </td>
                <td>
                    共有 (<span style="color: #f30"><%=returnedApplyforCount%></span>) 人提交了退货申请
                    <%
                        if (returnedApplyforCount > 0)
                        {
                        %>
                     ,<a href="javascript:PopitReturnedPayCount()">
                        是否立即去处理？</a>
                    <%
                        }
                            %>
                </td>
            </tr>
        </table>
    </div>
    <div class="content">
        <table id="checkList1" cellpadding="0" cellspacing="0" class="list">
            <tr>
                <td class="topTd" colspan="5" height="5">
                </td>
            </tr>
            <tr class="row">
                <th class="space" colspan="3">
                    其他提醒
                </th>
            </tr>     
            <tr class="row">
                <td width="15%">
                    当前在线用户
                </td>
                <td>
                   <%="共" + (((int)Application["user-visit-count"]) + PlugNT.Cms.BLL.User.fakeCount) + "人&nbsp;&nbsp;虚拟" + PlugNT.Cms.BLL.User.fakeCount + "人&nbsp;&nbsp;实际" + Application["user-visit-count"] + "人(有" + PlugNT.Cms.BLL.User.onlineUserCount + "人会员)"%>
                </td>
            </tr>
            <tr>
                <td class="bottomTd" colspan="5" height="5">
                </td>
            </tr>
        </table>
    </div>
    </form>


    </td>
  </tr>
 </table>
</div>
</body>
</html>
